package com.group.service.impl;

import com.group.mapper.MerchantMapper;
import com.group.service.MerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.entity.Good;

import java.util.List;

@Service
public class MerchantServiceImpl implements MerchantService {
    @Autowired
    private MerchantMapper merchantMapper;

    @Override
    public List selectListAll() {
        return merchantMapper.selectListAll();
    }

    @Override
    public Good selectById(Long id) {
        return merchantMapper.selectById(id);
    }

    @Override
    public int updateByIdType(Good good) {
        return merchantMapper.updateByIdType(good);
    }

    @Override
    public int deleteById(Long goodId) {
        return merchantMapper.deleteById(goodId);
    }

    @Override
    public int updateByIdCount(Good good) {
        return merchantMapper.updateByIdCount(good);
    }

    @Override
    public List Search(Good good) {
        return merchantMapper.Search(good);
    }

    @Override
    public List paging(Good good) {
        return merchantMapper.paging(good);
    }
}
